function loadcss(cssfile) {
	document.write('\<link rel="stylesheet" href="' + cssfile +'" type="text/css"/\>');
	}
//加载CSS
loadcss("http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all");
var csslist=[
    			'/plugins/bootstrap/css/bootstrap.min.css',
    			'/plugins/font-awesome/css/font-awesome.min.css',
    			'/plugins/simple-line-icons/simple-line-icons.min.css',
    			'/plugins/uniform/css/uniform.default.css',
    			'/plugins/bootstrap-switch/css/bootstrap-switch.min.css',
    			'/plugins/bootstrap-datatimepicker/bootstrap-datetimepicker.min.css',
				'/plugins/fullcalendar/fullcalendar.css',

    			//主题风格
    			'/css/components.css',
    			'/css/plugins.css',
    			'/css/layout.css',
    			'/css/color.css',
    			'/css/filterStyle.css',

    			//hr的
    			'/css/hr.css']
for (x in csslist){
    loadcss(static_url+csslist[x]);
}
// 加载所有的JS
 var jslist=[// 核心插件开始
    			'/plugins/jquery.min.js',
    			
    			'/plugins/jquery-ui/jquery-ui.min.js',
    			'/plugins/bootstrap/js/bootstrap.min.js',
    			'/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js',
    			'/plugins/jquery-slimscroll/jquery.slimscroll.min.js',
	 			'/plugins/fullcalendar/moment.min.js',
	 			'/plugins/fullcalendar/fullcalendar.min.js',



    			//页面内容插件开始
    			'/plugins/bootstrap-datatimepicker/bootstrap-datetimepicker.js',
    			//侧边栏收缩功能
    			'/js/metronic.js',
    			'/js/layout.js',
    			//分页等
    			'/js/demo.js',
    			//'/js/table-advanced.js',
    			// angularjs
    			
    			'/js/angularjs/angular.min.js',
    			'/js/angularjs/angular-sanitize.min.js',
    			'/js/angularjs/angular-ui-router.min.js',
    			//'/js/angular-route.min.js',
    			'/js/angularjs/ngStorage.min.js',

    			//HR模块
    			'/js/hr/func.js',
    			'/js/hr/service.js',
    			'/js/hr/hr_directive.js',
    			'/js/hr/application_controller.js',
    			'/js/hr/attend_record_controller.js',
    			'/js/hr/attend_report_controller.js',
    			'/js/hr/expire_manage_controller.js'
    			
    			]
    for (x in jslist){
	    loadjs(static_url+jslist[x]);
    }